package com.gameapplet.ranklist.service.Impl;

import com.gameapplet.ranklist.dao.IRankListDao;

import com.gameapplet.ranklist.model.RankList;
import com.gameapplet.ranklist.service.IRankListService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("iRankListService")
public class RankListService implements IRankListService {
    @Resource(name="ranklistDao")
    IRankListDao iRanklistDao;
    public List<RankList> selectRankList(){
        List<RankList> list = iRanklistDao.selectRankList();
        return  list;
    }

    @Override

    public List<RankList> selectGroupRank(String opengid) {
        return iRanklistDao.selectGroupRank(opengid);
    }
    public  List<RankList> selectStageRankList(String stageid){
        return  iRanklistDao.selectStageRankList(stageid);
    }
    public List<RankList> selectStageTenRankList(String  stageid){
        return  iRanklistDao.selectStageTenRankList(stageid);
    }
}
